package com.candy.candyproductservice.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;

/**
 * @author suYanLong
 * @date 2022年09月30日 10:16
 */
@Configuration
@ConditionalOnProperty(prefix = "rpc", name = "product.enable", havingValue = "true", matchIfMissing = true)
@EnableFeignClients(basePackages = "com.candy.candyproductservice.*")
public class FeignConfig {

}
